<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>签到列表</title>

    <!-- 引入 layui.css -->
    <link rel="stylesheet" href="//unpkg.com/layui@2.6.6/dist/css/layui.css">
    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
    <style>
        .messages {
            padding: pxToRem(5) 0;
            height: pxToRem(42);
            overflow: hidden;
            text-overflow:ellipsis;
            word-break: break-all;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
        }
    </style>
</head>
<body>
<a href="{:url('create')}"> <<<去添加! </a>
<br>
<span>欢迎:<span style="font-size: 50px;color:red">{$Think.session.userInfo.username}</span></span>
<button class="layui-btn layui-btn-primary layui-border-blue"><a href="{:url('admin/login/loginOut')}">退出</a></button>
<table class="layui-table">
    <colgroup>
        <col width="150">
        <col width="200">
        <col>
    </colgroup>
    <thead>
    <tr>
        <th>编号</th>
        <th>第几天</th>
        <th>图片</th>
        <th>获取积分</th>
        <th>是否可用</th>
        <th>排序</th>
        <th>文章内容</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    {foreach $data as $v}
    <tr>
        <td>{$v->id}</td>
        <td><a href="{:url('read')}?id={$v->id}">{$v->s_day}</a></td>
        <td><img src="{$v->images}"></td>
        <td>{$v->s_integral}</td>
        <td>
            {if $v->s_status == 1}
            <span style="color: black">是</span>

            {else/}
            <span style="color: red">否</span>
            {/if}
        </td>
        <td>{$v->s_sotre}</td>
        <td >
            <span class="messages">
                  {$v->s_content}
            </span>

        </td>
        <td>
            <a href="{:url('edit')}?id={$v->id}" style="color: #0e90d2">编辑</a>
            <a href="{:url('delete')}?id={$v->id}"style="color:red">删除</a>
        </td>
    </tr>
   {/foreach}
    </tbody>
</table>
<div id="demo0">
    {$data->render()|raw}
</div>


</body>
</html>
<!-- 引入 layui.js -->
<script src="//unpkg.com/layui@2.6.6/dist/layui.js"></script>
<script>


</script>